/*
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SLU
 * All portions are Copyright (C) 2008-2014 Openbravo SLU
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************
*/
package com.mes.manufacture.data;

import com.mes.data.EmesGroup;
import com.mes.data.EmesProcess;
import com.mes.data.EmesVendor;
import com.wms.entity.WmsInOrder;

import java.util.Date;

import org.openbravo.base.structure.ActiveEnabled;
import org.openbravo.base.structure.BaseOBObject;
import org.openbravo.base.structure.ClientEnabled;
import org.openbravo.base.structure.OrganizationEnabled;
import org.openbravo.base.structure.Traceable;
import org.openbravo.model.ad.access.User;
import org.openbravo.model.ad.system.Client;
import org.openbravo.model.common.enterprise.Organization;
/**
 * Entity class for entity Emeso_Manu_Handover (stored in table Emeso_Manu_Handover).
 *
 * NOTE: This class should not be instantiated directly. To instantiate this
 * class the {@link org.openbravo.base.provider.OBProvider} should be used.
 */
public class EmesoManuHandover extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled {
    private static final long serialVersionUID = 1L;
    public static final String TABLE_NAME = "Emeso_Manu_Handover";
    public static final String ENTITY_NAME = "Emeso_Manu_Handover";
    public static final String PROPERTY_ID = "id";
    public static final String PROPERTY_EMESPROCESS = "emesProcess";
    public static final String PROPERTY_EMESGROUP = "emesGroup";
    public static final String PROPERTY_DESCRIPTION = "description";
    public static final String PROPERTY_CLIENT = "client";
    public static final String PROPERTY_ORGANIZATION = "organization";
    public static final String PROPERTY_ACTIVE = "active";
    public static final String PROPERTY_CREATIONDATE = "creationDate";
    public static final String PROPERTY_CREATEDBY = "createdBy";
    public static final String PROPERTY_UPDATED = "updated";
    public static final String PROPERTY_UPDATEDBY = "updatedBy";
    public static final String PROPERTY_PREGROUPLEAVEOVERQTY = "pregroupLeaveoverQty";
    public static final String PROPERTY_PREPROCESSINQTY = "preprocessInQty";
    public static final String PROPERTY_OTHERPROCESSINQTY = "otherprocessInQty";
    public static final String PROPERTY_CURPROCESSOUTQTY = "curprocessOutQty";
    public static final String PROPERTY_OTHERPROCESSOUTQTY = "otherprocessOutQty";
    public static final String PROPERTY_WEIGHFRAGQTY = "weighFragQty";
    public static final String PROPERTY_EQUIPFRAGQTY = "equipFragQty";
    public static final String PROPERTY_CURDAYREWORKQTY = "curdayReworkQty";
    public static final String PROPERTY_CURGROUPLEAVEOVERQTY = "curgroupLeaveoverQty";
    public static final String PROPERTY_CURGROUPLEAVEOVERREWORKQTY = "curgroupLeaveoverReworkQty";
    public static final String PROPERTY_PREGROUPLEAVEOVERREWORKQTY = "pregroupLeaveoverReworkQty";
    public static final String PROPERTY_BADQTY = "bADQty";
    public static final String PROPERTY_WORKDAY = "workday";
    public static final String PROPERTY_EMESVENDOR = "emesVendor";
    public static final String PROPERTY_ISPRECAST = "isprecast";
    public static final String PROPERTY_QTY = "qty";
    public static final String PROPERTY_WMSINORDER = "wMSInOrder";
    public static final String PROPERTY_BATCHNUMBER = "batchNumber";

    public EmesoManuHandover() {
        setDefaultValue(PROPERTY_ACTIVE, true);
        setDefaultValue(PROPERTY_CREATIONDATE, new Date());
        setDefaultValue(PROPERTY_UPDATED, new Date());
        setDefaultValue(PROPERTY_ISPRECAST, false);
    }

    @Override
    public String getEntityName() {
        return ENTITY_NAME;
    }

    public String getId() {
        return (String) get(PROPERTY_ID);
    }

    public void setId(String id) {
        set(PROPERTY_ID, id);
    }

    public EmesProcess getEmesProcess() {
        return (EmesProcess) get(PROPERTY_EMESPROCESS);
    }

    public void setEmesProcess(EmesProcess emesProcess) {
        set(PROPERTY_EMESPROCESS, emesProcess);
    }

    public EmesGroup getEmesGroup() {
        return (EmesGroup) get(PROPERTY_EMESGROUP);
    }

    public void setEmesGroup(EmesGroup emesGroup) {
        set(PROPERTY_EMESGROUP, emesGroup);
    }

    public String getDescription() {
        return (String) get(PROPERTY_DESCRIPTION);
    }

    public void setDescription(String description) {
        set(PROPERTY_DESCRIPTION, description);
    }

    public Client getClient() {
        return (Client) get(PROPERTY_CLIENT);
    }

    public void setClient(Client client) {
        set(PROPERTY_CLIENT, client);
    }

    public Organization getOrganization() {
        return (Organization) get(PROPERTY_ORGANIZATION);
    }

    public void setOrganization(Organization organization) {
        set(PROPERTY_ORGANIZATION, organization);
    }

    public Boolean isActive() {
        return (Boolean) get(PROPERTY_ACTIVE);
    }

    public void setActive(Boolean active) {
        set(PROPERTY_ACTIVE, active);
    }

    public Date getCreationDate() {
        return (Date) get(PROPERTY_CREATIONDATE);
    }

    public void setCreationDate(Date creationDate) {
        set(PROPERTY_CREATIONDATE, creationDate);
    }

    public User getCreatedBy() {
        return (User) get(PROPERTY_CREATEDBY);
    }

    public void setCreatedBy(User createdBy) {
        set(PROPERTY_CREATEDBY, createdBy);
    }

    public Date getUpdated() {
        return (Date) get(PROPERTY_UPDATED);
    }

    public void setUpdated(Date updated) {
        set(PROPERTY_UPDATED, updated);
    }

    public User getUpdatedBy() {
        return (User) get(PROPERTY_UPDATEDBY);
    }

    public void setUpdatedBy(User updatedBy) {
        set(PROPERTY_UPDATEDBY, updatedBy);
    }

    public Long getPregroupLeaveoverQty() {
        return (Long) get(PROPERTY_PREGROUPLEAVEOVERQTY);
    }

    public void setPregroupLeaveoverQty(Long pregroupLeaveoverQty) {
        set(PROPERTY_PREGROUPLEAVEOVERQTY, pregroupLeaveoverQty);
    }

    public Long getPreprocessInQty() {
        return (Long) get(PROPERTY_PREPROCESSINQTY);
    }

    public void setPreprocessInQty(Long preprocessInQty) {
        set(PROPERTY_PREPROCESSINQTY, preprocessInQty);
    }

    public Long getOtherprocessInQty() {
        return (Long) get(PROPERTY_OTHERPROCESSINQTY);
    }

    public void setOtherprocessInQty(Long otherprocessInQty) {
        set(PROPERTY_OTHERPROCESSINQTY, otherprocessInQty);
    }

    public Long getCurprocessOutQty() {
        return (Long) get(PROPERTY_CURPROCESSOUTQTY);
    }

    public void setCurprocessOutQty(Long curprocessOutQty) {
        set(PROPERTY_CURPROCESSOUTQTY, curprocessOutQty);
    }

    public Long getOtherprocessOutQty() {
        return (Long) get(PROPERTY_OTHERPROCESSOUTQTY);
    }

    public void setOtherprocessOutQty(Long otherprocessOutQty) {
        set(PROPERTY_OTHERPROCESSOUTQTY, otherprocessOutQty);
    }

    public Long getWeighFragQty() {
        return (Long) get(PROPERTY_WEIGHFRAGQTY);
    }

    public void setWeighFragQty(Long weighFragQty) {
        set(PROPERTY_WEIGHFRAGQTY, weighFragQty);
    }

    public Long getEquipFragQty() {
        return (Long) get(PROPERTY_EQUIPFRAGQTY);
    }

    public void setEquipFragQty(Long equipFragQty) {
        set(PROPERTY_EQUIPFRAGQTY, equipFragQty);
    }

    public Long getCurdayReworkQty() {
        return (Long) get(PROPERTY_CURDAYREWORKQTY);
    }

    public void setCurdayReworkQty(Long curdayReworkQty) {
        set(PROPERTY_CURDAYREWORKQTY, curdayReworkQty);
    }

    public Long getCurgroupLeaveoverQty() {
        return (Long) get(PROPERTY_CURGROUPLEAVEOVERQTY);
    }

    public void setCurgroupLeaveoverQty(Long curgroupLeaveoverQty) {
        set(PROPERTY_CURGROUPLEAVEOVERQTY, curgroupLeaveoverQty);
    }

    public Long getCurgroupLeaveoverReworkQty() {
        return (Long) get(PROPERTY_CURGROUPLEAVEOVERREWORKQTY);
    }

    public void setCurgroupLeaveoverReworkQty(Long curgroupLeaveoverReworkQty) {
        set(PROPERTY_CURGROUPLEAVEOVERREWORKQTY, curgroupLeaveoverReworkQty);
    }

    public Long getPregroupLeaveoverReworkQty() {
        return (Long) get(PROPERTY_PREGROUPLEAVEOVERREWORKQTY);
    }

    public void setPregroupLeaveoverReworkQty(Long pregroupLeaveoverReworkQty) {
        set(PROPERTY_PREGROUPLEAVEOVERREWORKQTY, pregroupLeaveoverReworkQty);
    }

    public Long getBADQty() {
        return (Long) get(PROPERTY_BADQTY);
    }

    public void setBADQty(Long bADQty) {
        set(PROPERTY_BADQTY, bADQty);
    }

    public String getWorkday() {
        return (String) get(PROPERTY_WORKDAY);
    }

    public void setWorkday(String workday) {
        set(PROPERTY_WORKDAY, workday);
    }

    public EmesVendor getEmesVendor() {
        return (EmesVendor) get(PROPERTY_EMESVENDOR);
    }

    public void setEmesVendor(EmesVendor emesVendor) {
        set(PROPERTY_EMESVENDOR, emesVendor);
    }

    public Boolean isPrecast() {
        return (Boolean) get(PROPERTY_ISPRECAST);
    }

    public void setPrecast(Boolean isprecast) {
        set(PROPERTY_ISPRECAST, isprecast);
    }

    public Long getQty() {
        return (Long) get(PROPERTY_QTY);
    }

    public void setQty(Long qty) {
        set(PROPERTY_QTY, qty);
    }

    public WmsInOrder getWMSInOrder() {
        return (WmsInOrder) get(PROPERTY_WMSINORDER);
    }

    public void setWMSInOrder(WmsInOrder wMSInOrder) {
        set(PROPERTY_WMSINORDER, wMSInOrder);
    }

    public String getBatchNumber() {
        return (String) get(PROPERTY_BATCHNUMBER);
    }

    public void setBatchNumber(String batchNumber) {
        set(PROPERTY_BATCHNUMBER, batchNumber);
    }

}
